import httpInstance from '@/utils/http'

export const getGoodsDetails = (id) => httpInstance({ url: `/goods?id=${id}` })

// 子组件数据
export const getGoodsHot = ({ id, type, limit = 3 }) => {
    return httpInstance({
        url: '/goods/hot',
        params: {
            id,
            type,
            limit
        }
    })
}